//
//  Adventure_Detail_Lable_Cell.m
//  Food
//
//  Created by dlios on 15-7-15.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Adventure_Detail_Lable_Cell.h"

@implementation Adventure_Detail_Lable_Cell
- (void)dealloc
{
    [_introduce release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.introduce = [[UILabel alloc] init];
        self.introduce.numberOfLines = 0;
//        self.introduce.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:self.introduce];
        
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
//    self.introduce.frame = CGRectMake(0, 0, layoutAttributes.size.width * 2 + 10, layoutAttributes.size.height + 200);
    
    self.introduce.frame = CGRectMake(0, 0, layoutAttributes.size.width, layoutAttributes.size.height);
}

- (void)setAdventureDetail:(AdventureDetailModel *)adventureDetail
{
    if (_adventureDetail != adventureDetail) {
        [_adventureDetail release];
        _adventureDetail = [adventureDetail retain];
    }
    self.introduce.text = adventureDetail.content;
}



@end
